package com.kid.keep.dao.item;

import com.kid.keep.bo.ChildCheckItemBO;
import com.kid.keep.po.ChildCheckItem;

import java.util.List;

/**
 * @Description ChildCheckItem dao
 * @Author JOHN
 * @Create 2020-01-02
 * @Since 1.0.0
 */
@SuppressWarnings("all")
public interface IChildCheckItemRepository {

    int updateByIdAndReportId(ChildCheckItem childCheckItem, Long id, Long reportId);


    ChildCheckItemBO findByIdAndReportId( Long id,Long reportId);

    List<ChildCheckItemBO> findAllByReportId(Long reportId);

    List<ChildCheckItemBO> findAllByReportIdAndDetectionType(Long reportId, Integer detectionType);

    ChildCheckItemBO  getByIdAndReportId( Long id,Long reportId);

    int updateResultByReportId(Long reportId);


}
